<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <title>新建日志</title>
  <link rel="stylesheet" href="../../../template/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="../../../template/website/css/app.css"/>
  <style type="text/css">
  .border-radius {
    border-radius: 5px;
 }
 .item-background{
    background: #f3f2f1;
 }
</style>
</head>
<body>
  <div id="search">
    <form class="am-form" id="list-form" action="${base}/broadbandreport/list" method="post">
      <table border="0">
        <tbody>
          <tr >
            <td colspan="3">
              <div align='center' class="am-padding">
                <input type="text" class="am-form-field am-input-sm" placeholder="请输入日志标题" id="title" value="" />
              </div>
            </td>
          </tr>
          <tr>
            <td>
              <div align='center' class="am-padding">
                <div class="am-form-group am-form-icon"> <i class="am-icon-calendar"></i>
                  <input type="text" class="am-form-field am-input-sm" placeholder="开始时间" data-am-datepicker id="start" value="" readonly></div>
              </div>
            </td>
            <td>-</td>
            <td>
              <div align='center' class="am-padding">
                <div class="am-form-group am-form-icon"> <i class="am-icon-calendar"></i>
                  <input type="text" class="am-form-field am-input-sm" placeholder="结束时间" data-am-datepicker id="end" value="" readonly ></div>
              </div>
            </td>
          </tr>
          <tr>
            <td colspan="3">
            <div class="am-padding am-text-sm">首席客户经理参与：
              <label class="am-radio-inline am-text-sm">
                <input type="radio" id="chiefmgrflag" name="chiefmgrflagRadio" value="1" data-am-ucheck checked>是</label>
              <label class="am-radio-inline am-text-sm">
                <input type="radio" id="chiefmgrflag" name="chiefmgrflagRadio" value="0" data-am-ucheck>否</label>
                </div>
            </td>
          </tr>
          <tr>
            <td colspan="3">
              <div align='center' class="am-padding">
                <input type="text" class="am-form-field am-input-sm" placeholder="请输入日志内容" id="content" value="" />
              </div>
            </td>
          </tr>
          <tr >
            <td colspan="3">
              <div align='center' class="am-padding">
                <select data-am-selected="{btnWidth: '100%', btnSize: 'sm'}" id="actionKind" placeholder="请选择办理事宜">
                  <option value="">请选择办理事宜</option>
                  <option value="1">集团业务推广</option>
                  <option value="2">数据业务推广</option>
                  <option value="3">服务关怀</option>
                  <option value="4">预警处理</option>
                  <option value="5">商机信息管理</option>
                  <option value="6">竞争信息管理</option>
                  <option value="7">基础信息更新</option>
                  <option value="8">多渠道协同</option>
                  <option value="10">临时任务</option>
                  <option value="11">公司内部任务</option>
                  <option value="12">个人VIP服务</option>
                </select>
              </div>
            </td>
          </tr>
          <tr id="guanhuaiTr" style="display: none">
            <td colspan="3">
              <div align='center' class="am-padding">
                <select data-am-selected="{btnWidth: '100%', btnSize: 'sm'}" id="guanhuaiType" placeholder="请选择服务关怀事项">
                  <option value="">请选择服务关怀事项</option>
                  <option value="1">日常服务</option>
                  <option value="2">网络监测</option>
                  <option value="3">挂牌驻点</option>
                  <option value="4">欠费提醒</option>
                  <option value="5">生日和节日问候</option>
                  <option value="6">联谊活动</option>
                </select>
              </div>
            </td>
          </tr>
          <tr >
            <td colspan="3">
              <div align='center' class="am-padding">
                <input id="group_id" type="hidden" value="" />
                <input type="text" class="am-form-field am-input-sm" placeholder="请选择集团客户" id="group_name" value="" readonly/>
              </div>
            </td>
          </tr>
          <tr >
            <td colspan="3">
              <div align='center' class="am-padding">
                <select data-am-selected="{btnWidth: '100%', btnSize: 'sm'}" id="actionType" placeholder="请选择工作方式">
                  <option value="">请选择工作方式</option>
                  <option value="1">上门</option>
                  <option value="2">短信</option>
                  <option value="3">电话</option>
                  <option value="4">信函</option>
                  <option value="5">邮件</option>
                </select>
              </div>
            </td>
          </tr>
          <tr >
            <td colspan="3">
              <div align='center' class="am-padding">
                <input type="text" class="am-form-field am-input-sm" placeholder="等待加载集团联系人" id="cust_contactor" value="" readonly/>
              </div>

            </td>
          </tr>
          <tr>
            <td colspan="3">
              <div class="am-padding" align='center'>
                <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn" style="width:40%;">添加日志</button>
                <button type="button" class="am-btn am-btn-default am-btn-sm  am-text-secondary" id="cancel-btn" onclick="javascript:history.go(-1);" style="width:40%;">取消</button>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
  <!--集团查询-->
  <div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
    <div class="am-modal-dialog">
      <div class="am-modal-hd">
        <input type="text" class="am-form-field am-input-sm" placeholder="集团编码/中文模糊查询" id="group_keyword" value="" />
      </div>
      <div class="am-modal-bd">
        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary am-btn-block" id="query-group-btn">搜索</button>
      </div>
      <div id="group-list-div" class="am-modal-bd" style="height:200px; overflow:auto;overflow-x:hidden;">

        <ul class="am-list am-list-static am-list-border" id="group-list">
          <script type="text/x-handlebars-template" id="amz-group-list">
           {{#if list}}
            {{#list}}
              <li class="am-g">
                <input name="group_id" type="hidden" value="{{grpId}}" />
                <div name="group_name" class="am-text-truncate am-text-left am-text-sm">{{grpName}}</div>
              </li>
           {{/list}}
          {{else}}
            <div id="no-content-msg" class="am-text-center">{{error}}</div>
          {{/if}}
          </script>
        </ul>
      </div>
      <div class="am-u-sm-12 am-hide am-text-center am-text-xs" id="loadingGroup">
          <i class="am-icon-spinner am-icon-spin"></i>
          加载中，请稍候……
        </div>
      <div class="am-modal-footer">
        <span class="am-modal-btn">确定</span>
      </div>
    </div>
  </div>
  <!--集团联系人-->
  <div class="am-modal am-modal-alert" tabindex="-1" id="my-alert-cust">
    <div class="am-modal-dialog">
      <div class="am-modal-hd">请选择集团联系人</div>
      <div id="group-list-div" class="am-modal-bd" style="height:200px; overflow:auto;overflow-x:hidden;">
        <ul class="am-list am-list-static am-list-border" id="cust-list">
          <script type="text/x-handlebars-template" id="amz-cust-list">
           {{#if custlist}}
            {{#custlist}}
              <li class="am-g">
                <input name="cust_name" type="hidden" value="{{memberName}}" />
                <div name="cust_name_ex" class="am-text-truncate am-text-left am-text-sm">{{memberName}}</div>
              </li>
           {{/custlist}}
          {{else}}
            <div id="no-content-msg" class="am-text-center">{{error}}</div>
          {{/if}}
          </script>
        </ul>
        <div class="am-u-sm-12 am-hide am-text-center am-text-xs" id="loadingCust">
          <i class="am-icon-spinner am-icon-spin"></i>
          加载中，请稍候……
        </div>
      </div>
      <div class="am-modal-footer">
        <span class="am-modal-btn">取消</span>
      </div>
    </div>
  </div>
  <div class="am-modal am-modal-no-btn" tabindex="-1" id="modal">
    <div class="am-modal-dialog">
      <div class="am-modal-hd">正在保存...</div>
      <div class="am-modal-bd">
        <span class="am-icon-spinner am-icon-spin"></span>
      </div>
    </div>
  </div>

  <script type="text/javascript" src="../../../template/assets/js/jquery.min.js"></script>
  <script type="text/javascript" src="../../../template/assets/js/amazeui.min.js"></script>
  <script type="text/javascript" src="../../../template/assets/js/handlebars.min.js"></script>
  <script type="text/javascript" src="../../../template/assets/js/amazeui.widgets.helper.min.js"></script>
  <script type="text/javascript" src="../../../template/website/js/app.js"></script>
  <script type="text/javascript" src="../../../template/admin/js/utils.js"></script>
  <script type="text/javascript" src="../../../template/website/js/goventerprise/esop/tasklog_input.js"></script>
  <script type="text/javascript" src="../../../template/website/js/goventerprise/esop/tasklog_params.js"></script>
  <link rel="stylesheet" href="../../../template/assets/css/font-awesome.css">
  <!--   <link rel="stylesheet" href="../../../template/assets/css/site.css">
  -->
  <!--<script type="text/javascript" src="../../template/website/js/goventerprise/index.js"></script>
-->
<script type="text/javascript">
    $(function(){});

    //返回页面分享的参数,当当前页面有canAppShare=1参数时需要添加此函数resShareParm(函数名不能改，客户端已经只调用这个函数)
    function resShareParm() {
        var regText1 = "saleType=1";
        var regText2 = "saleType=3";
        var regS1 = new RegExp(regText1, "gi");
        var regS2 = new RegExp(regText2, "gi");
        var urlpath = window.location.href.replace(regS1, "saleType=2").replace(regS2, "saleType=4");//修改平台类型(原生分享出去统一改为分享平台)：1（直销通代客下单）改为 2（直销通分享页面购买） 3（微店原生购买）改为 4（微店分享购买）
        var imgpath = 'http://'+window.location.host+'/upload/file/default_head_img.png';
        var title = "用移动手机宽带免费送";
        var description = "超人气预约套餐等你来约";
        var data = "url=" + urlpath + "&&img=" + imgpath + "&&title=" + title + "&&description=" + description + "";
        return data;
    }
  </script>
</body>
</html>